<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */namespace Home\Controller; 



class SendemailController extends HomeController{
    public function Index(){
    
        $this->display();

    
}
public function add(){    
            if(SendMail($_POST['mail'],$_POST['title'],$_POST['content']))
                $this->success('发送成功！');
            else
                $this->error('发送失败');
 }
}